import MyKoa from './koa.cjs'

import {Web2} from './web.cjs'
const __dirname = new URL('.', import.meta.url).pathname

class Server extends Web2 {
    constructor() {
        super();

        new MyKoa(__dirname, __dirname, 'ejs')
            .route([
                ['/bg-color', this.bg_color],
                ['/bg-image', this.bg_image]
            ])
            .start(3080)
    }
}

new Server()
